package org.osiris.persistence.controllers;

import java.util.List;

import javax.persistence.EntityManager;

import org.osiris.persistence.Tiporequisito;
import org.osiris.persistence.controllers.exceptions.IllegalOrphanException;
import org.osiris.persistence.controllers.exceptions.NonexistentEntityException;

public interface TipoInterface {

	public abstract EntityManager getEntityManager();

	public abstract void create(Tiporequisito tiporequisito);

	public abstract void edit(Tiporequisito tiporequisito)
			throws IllegalOrphanException, NonexistentEntityException,
			Exception;

	public abstract void destroy(Long id) throws IllegalOrphanException,
			NonexistentEntityException;

	public abstract List<Tiporequisito> findTiporequisitoEntities();

	public abstract List<Tiporequisito> findTiporequisitoEntities(
			int maxResults, int firstResult);

	public abstract Tiporequisito findTiporequisito(Long id);

	public abstract int getTiporequisitoCount();

}